<?php

/* @var $this yii\web\View */
use common\helpers\Render;
use common\models\User;

$this->title = '首页';
?>

<div class="box-content flyer-form pane gap">

    <div class="form-item">
        <div class="input-title">美化select</div>
        <div class="input-inline"><?= Render::select('role', User::$roleSelector, null, ['prompt' => '全部--', 'flyer' => 'select']) ?></div>
    </div>
    <div class="form-item item-text">
        <div class="input-title">美化checkbox</div>
        <div class="input-block pd"><input flyer="switch" name="switch" value="1" type="checkbox"></div>
    </div>
</div>

<script src="<?= Render::static('flyer/flyer.class.js') ?>"></script>
<script>
    $(document).ready(function() {
        (new flyer).init({ form: '.flyer-form' });
    });
</script>